package com.inst.rocketmq.service;


import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.stereotype.Component;

/**
 * @author admin
 */
@Component
@RocketMQMessageListener(consumerGroup = "pqs_consume_group", topic = "send_msg_topic")
public class Consumer implements RocketMQListener<String> {

    @Override
    public void onMessage(String msg) {
        System.out.println("springboot 处理消息:" + msg);
    }

}

